﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace CKS2320.Domain.DBEntity
{
    [Table("voltagewithstand")]
    public partial class Voltagewithstand
    {
        [Key]
        public Guid Id { get; set; }
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        //  public long SecondId { get; set; }
        [StringLength(20)]
        public string? StationCode { get; set; }
        public bool? Heart1 { get; set; }
        public bool? StartUpLoad { get; set; }
        [StringLength(40)]
        public string? PartCode { get; set; }
        //DC
        public bool? VoltageWithstandResult { get; set; }
        //AC
        public bool? VoltageWithstandResultAC { get; set; }
        public bool? CameraDetectionResult { get; set; }
        //总长
        public bool? TotalLengthResult { get; set; }
        public bool? Heart2 { get; set; }
        public bool? EndUpLoad { get; set; }
        public bool? Result { get; set; }
        [StringLength(10)]
        public string? RunType { get; set; }
        [Column(TypeName = "datetime")]
        public DateTime? CreatedTime { get; set; }
        [Column(TypeName = "datetime")]
        public DateTime? ModifiedTime { get; set; }
        public bool? Pushed { get; set; } = false;
        [NotMapped] // 使用 NotMapped 特性标记该属性不映射到数据库表字段
        public List<Detectiondetail> detaillist { get; set; } = new List<Detectiondetail>();
    }
}
